

<?php
/* @var $this LimitationsController */
/* @var $model Limitations */
/* @var $form CActiveForm */
?>
<script type="text/javascript">
  $(function() {
    $('#datetimepicker1').datetimepicker({
      language: 'pt-BR'
    });
  });
</script>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'limitations-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

 
	<div class="form-group">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description'); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'by_byte_in'); ?>
		<?php echo $form->textField($model,'by_byte_in'); ?>
		<?php echo $form->error($model,'by_byte_in'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'by_byte_out'); ?>
		<?php echo $form->textField($model,'by_byte_out'); ?>
		<?php echo $form->error($model,'by_byte_out'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'by_byte_total'); ?>
		<?php echo $form->textField($model,'by_byte_total'); ?>
		<?php echo $form->error($model,'by_byte_total'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'by_uptime'); ?>
		<?php echo $form->textField($model,'by_uptime'); ?>
		<?php echo $form->error($model,'by_uptime'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'update time'); ?>
		<?php echo $form->textField($model,'updtime'); ?>
		<?php echo $form->error($model,'updtime'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'update by'); ?>
		<?php echo $form->textField($model,'updby',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'updby'); ?>
	</div>

	<div class="form-group">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
		<?php echo CHtml::button('Back', array('onclick' => "history.go(-1);return false;"));?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
